package beans {
	
	public class RoomBean {
		
		//------------------------------------------------------------
        //
        // variables
        //
        //------------------------------------------------------------
		
		//------------------------------
        // roomID
        //------------------------------

        private var _roomID:uint;

        public function get roomID():uint {
            return _roomID;
        }

        public function set roomID(roomID:uint):void {
            _roomID = roomID;
        }
        
        //------------------------------
        // companyID
        //------------------------------

        private var _companyID:uint;

        public function get companyID():uint {
            return _companyID;
        }

        public function set companyID(companyID:uint):void {
            _companyID = companyID;
        }


        //------------------------------
        // companyName
        //------------------------------

        private var _companyName:String;

        public function get companyName():String {
            return _companyName;
        }

        public function set companyName(companyName:String):void {
            _companyName = companyName;
        }

        //------------------------------
        // requestCount
        //------------------------------

        private var _requestCount:int;

        public function get requestCount():int {
            return _requestCount;
        }

        public function set requestCount(requestCount:int):void {
            _requestCount = requestCount;
        }
		
		//------------------------------------------------------------
        //
        // constructor
        //
        //------------------------------------------------------------
		
		public function RoomBean(value:XML) {
			if (!value) {
	            companyName = "";
                return;
            }
            
            roomID = uint(value.id);
            companyID = value.comid;
            companyName = value.companyName;
            requestCount = uint(value.registerCounter);
		}
		
	}
}